<template>
	<view class="video-content">
		<image v-show="isActive" :src="videoVo.coverUrl" @click="play()"></image>
		<video v-show="flag" id="myVideo" src="" controls="false"></video>
	</view>
</template>

<script setup lang="ts">
import { reactive,ref} from 'vue';
const flag=ref(false)
const isActive=ref(true)
interface Props{
	videoVo:any
}
const props=defineProps<Props>()
const videoVo=reactive(props.videoVo)
function play(){
	flag.value=true
	console.log('222')
	isActive.value=false
}
</script>

<style>
</style>